﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>新建流程</title>
    <link href="../../../Comm/Style/Table0.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI/themes/gray/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../js/CCBPMDesignerData.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var Ele_FlowName = document.getElementById("TB_FlowName");
            Ele_FlowName.focus();

            var flowSort = getArgsFromHref("sort");
            flowSort = flowSort.replace("F","");
            var params = {
                method: "Do",
                doWhat: "GetFlowSorts"
            };
            ajaxService(params, function (data) {
                var pushData = eval('(' + data + ')');
                $('#DDL_FlowSort').combotree({
                    lines: true,
                    data: pushData,
                    onLoadSuccess: function () {
                        if (flowSort) {
                            $('#DDL_FlowSort').combotree('setValue', flowSort);
                        }
                    }
                });
            }, this, "1");
        });

        function Find2TreeNode() {
            var flowSort = $('#DDL_FlowSort').combotree('getValue');
            var t = $('#DDL_FlowSort').combotree('tree'); // 获取树对象
            if (t) {
                t.tree('find', flowSort); 	// 获取选择的节点
            }
        }

        function getNewFlowInfo() {
            return {
                flowName: $('#TB_FlowName').val(),
                flowSort: $('#DDL_FlowSort').combotree('getValue'),
                dataStoreModel: $('#DDL_DataStoreModel').combobox('getValue'),
                pTable: $('#TB_PTable').val(),
                flowCode: $('#TB_FlowCode').val(),
                FlowVersion: document.getElementById("DDL_FlowVersion").value
            };
        }
    </script>
</head>
<body>
    <form id="from1" action="">
    <table class="Table" cellpadding="0" cellspacing="0" border="0" style="width: 100%">
        <tr>
            <td><font color=red><b>*</b></font>  流程名称：</td>
            <td>
                <input id="TB_FlowName" class="easyui-textbox" style="width: 200px" />
            </td>
            <td> </td>
        </tr>
        <tr>
            <td>
                <font color=red><b>*</b></font>流程类别：
            </td>
            <td>
                <select id="DDL_FlowSort" onclick="Find2TreeNode()" class="easyui-combotree" style="width: 200px;">
                </select>
            </td>

            <td> </td>
        </tr>
        <tr>
            <td nowarp="true"><font color="red"><b>*</b></font>数据存储模式：</td>
            <td>
                <select id="DDL_DataStoreModel" class="easyui-combobox" style="width: 200px;">
                    <option value="0">数据轨迹模式</option>
                    <option value="1" selected="true">数据合并模式</option>
                </select>
            </td>
            <td> <font  color="gray">如需要保留每个节点的数据请选第1种模式.</font></td>
        </tr>
        <tr>
            <td>流程数据表：</td>
            <td>
                <input id="TB_PTable" class="easyui-textbox" style="width: 200px" />
            </td>
            <td> <font  color="gray">存储到流程数据库上的表名称，默认为NDxxxRpt,xxx是流程编号。 </font></td>
        </tr>
        <tr>
            <td nowarp="true"  width="20%;">
                流程标记：
            </td>
            <td>
                <input id="TB_FlowCode" class="easyui-textbox" style="width: 200px" />
            </td>
            <td> 
            <font  color="gray">唯一来确定此流程的标记、也叫流程别名、比如:BaoXiao,QingJia (可以为空)</font>
            </td>
        <tr>
            <td  nowarp="true"><font color=red><b>*</b></font>流程模式：</td>
            <td>
                <select id="DDL_FlowVersion" style="width: 200px;">
                    <option value="0">CCFlow(旧版本默认:使用SilverLight 流程设计器,不再升级) </option>
                    <option value="1" selected="selected">CCBPM (默认推荐默认:使用html5流程设计器)</option>
                    <option value="2">BPMN2.0(国际规范默认:使用html5流程设计器)</option>
                </select>
                <br />
              
            </td>
             
             <td>

             <font  color="gray">
                <ul>
                <li>CCFlow为silverlight设计模式,采用旧版本的sl设计器。</li>
                <li>ccbpm为Html5设计模式。</li>
                <li>BPMN为适应BPMN2.0规则模式.</li>
                </ul>
                </font>

             </td>
        </tr>
    </table>
    </form>
</body>
</html>
